diff options
| author | trisusilo <tri.susilo@altama.co.id> | 2023-10-05 03:32:35 +0000 |
|---|---|---|
| committer | trisusilo <tri.susilo@altama.co.id> | 2023-10-05 03:32:35 +0000 |
| commit | 4304a20a4f0c641e978fe83116b56783565cc131 (patch) | |
| tree | a9e3a1a3048298c3a8a41284e7b8fce16ab45453 /src/pages/shop/product/[slug].jsx | |
| parent | 2bd77eed075a2103a3c6b97377a102085271d631 (diff) | |
| parent | e9f65fadbfcf319db1f2f73e0984acad4f9aa505 (diff) | |
Merged in CR/Pricelist (pull request #89)
error query params
Diffstat (limited to 'src/pages/shop/product/[slug].jsx')
| -rw-r--r-- | src/pages/shop/product/[slug].jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pages/shop/product/[slug].jsx b/src/pages/shop/product/[slug].jsx index 7351da2f..63fb2e7e 100644 --- a/src/pages/shop/product/[slug].jsx +++ b/src/pages/shop/product/[slug].jsx @@ -18,7 +18,7 @@ export async function getServerSideProps(context) { const cookies = context.req.headers.cookie const cookieObj = cookies ? cookie.parse(cookies) : {} const auth = cookieObj.auth ? JSON.parse(cookieObj.auth) : {} - const tier = auth.pricelist + const tier = auth.pricelist ? auth.pricelist : false const authToken = auth?.token || '' let response = await axios( |
